package com.xr.config;

import com.xr.service.HelloService;
import com.xr.service.impl.HelloServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyAppConfig {
    @Bean
    public HelloService helloService(){
        System.out.println("加入了配置");
        return new HelloServiceImpl();
    }
}
